if (WIN32)
    set (PLATFORM_LIBS Ws2_32 mswsock iphlpapi ntdll)
else (WIN32)
    set (PLATFORM_LIBS pthread ${CMAKE_DL_LIBS})
endif (WIN32)

# 需要链接的库文件
target_link_libraries(main.c   ${PLATFORM_LIBS})
